/* 用户中心样式 - 现代化设计 */

/* 统一顶部样式 */
#Header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

#Header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(10px); }
}

#Header .tx-c {
    text-align: center !important;
}

#Header h1 {
    text-align: center !important;
    font-weight: 600;
    font-size: 1.5em !important;
    letter-spacing: 0.5px;
}

#ScrollContent {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

/* 背景装饰 */
#ScrollContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* 登录表单容器 */
#login-section {
    padding: 2em 1em;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ========== 头像区域重构 ========== */

/* 基础头像容器 */
.user-avatar-large {
    width: 8em;
    height: 8em;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1.5em auto 2.5em auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

/* 默认用户图标 */
.user-avatar-large i.fa-user {
    font-size: 4em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 用户头像图片（如果有的话） */
.user-avatar-large img.user-avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.user-avatar-large img.user-avatar-img.uhide {
    display: none !important;
}

/* 相机图标（仅在已登录状态显示） */
.avatar-camera {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2.5em;
    height: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 3;
    transition: all 0.3s ease;
}

.avatar-camera i.fa-camera {
    font-size: 1em !important;
    color: #fff !important;
}

.avatar-camera:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.user-avatar-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

/* 用户信息头部 */
.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3.5em 2em 4.5em 2em;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin: -4.5em -0.5em 2em -0.5em;
}

.user-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%),
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

/* 登录表单 */
.login-form {
    width: 90%;
    max-width: 400px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5em 2em;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 输入框容器 */
.login-form .ub.ub-ac.ubb.uinn {
    position: relative;
    margin-bottom: 1.5em;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-form .ub.ub-ac.ubb.uinn:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.login-form .ub.ub-ac.ubb.uinn .fa {
    color: #667eea;
    font-size: 1.4em !important;
    margin: 0 1em;
    transition: all 0.3s ease;
    z-index: 2;
}

.login-form .ub.ub-ac.ubb.uinn:focus-within .fa {
    transform: scale(1.1);
    color: #764ba2;
}

.login-form input {
    border: none;
    outline: none;
    font-size: 1.2em !important;
    padding: 1.2em 1em 1.2em 0;
    background: transparent;
    transition: all 0.3s ease;
    width: 100%;
    color: #2c3e50;
    font-weight: 500;
}

.login-form input::placeholder {
    color: #95a5a6;
    transition: all 0.3s ease;
    font-size: 1.1em !important;
}

.login-form input:focus::placeholder {
    color: transparent;
    transform: translateY(-10px);
}

/* 按钮样式 */
.btn {
    height: 3.5em;
    border-radius: 18px;
    margin: 1em 0;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.bc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
}

.bc-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bc-btn:hover::after {
    left: 100%;
}

.bc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.bc-btn:active {
    transform: translateY(-1px);
}

.bc-btn-sub {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.bc-btn-sub:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.bc-btn-warn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.bc-btn-warn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

/* 菜单项 */
.menu-item {
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 20px;
    margin: 1em 1em;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0.5em 0;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
}

.menu-item:hover::before {
    width: 6px;
}

.menu-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    background: rgba(255,255,255,1);
}

.menu-item:active {
    transform: translateX(4px) translateY(0);
}

.menu-item .fa {
    color: #667eea;
    transition: all 0.3s ease;
    font-size: 1.3em !important;
}

.menu-item:hover .fa {
    transform: scale(1.2);
    color: #764ba2;
}

/* 登录提示文字 */
.login-form + div {
    color: #7f8c8d;
    font-size: 1.2em !important;
    text-align: center;
    margin-top: 1em;
    line-height: 1.6;
}

/* 工具类 */
.uinn {
    padding: 1.8em;
}

.umar-t {
    margin-top: 1.5em;
}

.umar-t-s {
    margin-top: 0.8em;
}

.umar-r {
    margin-right: 0.8em;
}

.t-gra {
    color: #95a5a6;
}

.ulev-1 {
    font-size: 1.4em !important;
    font-weight: 500;
    line-height: 1.3;
}

.ulev-2 {
    font-size: 1.8em !important;
    font-weight: 600;
    line-height: 1.2;
}

.ulev--1 {
    font-size: 1.2em !important;
    line-height: 1.4;
}

.ulev-3 {
    font-size: 1.6em !important;
    font-weight: 600;
    line-height: 1.2;
}

/* 菜单项文字大小调整 */
.menu-item .ub-f1 .ulev-2 {
    font-size: 1.5em !important;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.menu-item .ub-f1 .ulev--1 {
    font-size: 1.1em !important;
    color: #7f8c8d;
    margin-top: 0.3em;
    line-height: 1.4;
}

/* 按钮文字大小 */
.btn .ut-s {
    font-size: 1.3em !important;
    font-weight: 600;
    line-height: 1.2;
}

/* 入场动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-form {
    animation: slideInUp 0.8s ease;
}

.menu-item {
    animation: slideInUp 0.6s ease;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

.user-header {
    animation: fadeIn 1s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .user-avatar-large {
        width: 7em;
        height: 7em;
    }
    
    .login-form {
        width: 95%;
        padding: 2em 1.5em;
        margin: 1em auto;
    }
    
    .menu-item {
        margin: 0.5em;
    }
    
    .uinn {
        padding: 1.2em;
    }
    
    .user-header {
        padding: 2.5em 1.5em 3.5em 1.5em;
        margin: -4.5em 0 1.5em 0;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    #ScrollContent {
        background: linear-gradient(135deg, #2c3e50 0%, #3c4560 100%);
    }
    
    .login-form {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }
    
    .menu-item {
        background: rgba(44, 62, 80, 0.9);
        color: #ecf0f1;
        border-color: rgba(102, 126, 234, 0.3);
    }
}

/* 确保所有文字都足够大 */
body, html {
    font-size: 16px !important;
} 